﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T.E.ERP.Domains.Materials
{
    /// <summary>
    /// 物料分类表
    /// </summary>
    public class MaterialCategoryModel
    {
        /// <summary>
        /// 主键 物料分类编号
        /// </summary>
        [Key]
        public int category_id {  get; set; }
        /// <summary>
        /// 上级分类 ID，关联自身表实现层级关系
        /// </summary>
        public int parent_category_id {  get; set; }
        /// <summary>
        /// 分类编码
        /// </summary>
        public string category_code {  get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string category_name {  get; set; }
        /// <summary>
        /// 计量单位编码，关联计量单位动态表
        /// </summary>
        public int unit_of_measurement_id {  get; set; }
        /// <summary>
        /// 供应方式编码，关联供应方式动态表
        /// </summary>
        public int supply_method_id {  get; set; }
        /// <summary>
        /// 分类状态编码，关联分类状态动态表
        /// </summary>
        public SupplyMethod SupplyMethod {  get; set; }
        /// <summary>
        /// 流水号长度
        /// </summary>
        public int serial_number_length {  get; set; }
        /// <summary>
        /// 删除标识符
        /// </summary>
        public bool IdDel {  get; set; }
    }



    /// <summary>
    /// 分类状态动态枚举
    /// </summary>
    public enum SupplyMethod
    {
        正常=1,
        停用=2
    }


  





}
